﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TCL.EO
{
    [Serializable()]
    public class UserBaseEO: SEOEXEO
    {
        /// <summary>
        /// PK_iAccountID: 1
        /// </summary>
        public Int32 PK_iAccountID { get; set; }

        /// <summary>
        /// sUsername: admin
        /// </summary>
        public String sUsername { get; set; }

        /// <summary>
        /// sPassword: ajuermdnsndsd98434ndbd93== (mã hóa base64)
        /// </summary>
        public String sPassword { get; set; }

        /// <summary>
        /// sEmail: admin@nguyenmanhthang.net
        /// </summary>
        public String sEmail { get; set; }

        /// <summary>
        /// sPermission: ajuermdnsndsd98434ndbd93== (mã hóa base64)
        /// </summary>
        public String sPermission { get; set; }

        /// <summary>
        /// iPermission: 1
        /// </summary>
        public Int16 iPermission { get; set; }

        /// <summary>
        /// bState: true
        /// </summary>
        public Boolean bState { get; set; }
    }

    [Serializable()]
    public class AccountEO : UserBaseEO
    {
        public String sFullName { get; set; }
        public String sAddress { get; set; }
        public String sPhoneNumber { get; set; }
        public String sLinkAvatar { get; set; }
        public DateTime tDateOfBirth { get; set; }
        public DateTime tDateOfReg { get; set; }
        public DateTime tLastLogin { get; set; }
        public DateTime tLastChangePass { get; set; }
    }

    [Serializable()]
    public class Account_ZipEO
    {
        public Int32 PK_iAccountID { get; set; }
        public String sUsername { get; set; }
        public String sFullName { get; set; }
        public Int16 iPermission { get; set; }
        public DateTime tDateOfReg { get; set; }
    }
}
